﻿<%@ Page Language="C#" MasterPageFile="~/System/MasterPageTra.master" AutoEventWireup="true"
    CodeFile="HospitalPurList.aspx.cs" Inherits="Hospital_HospitalPurList" Title="维护采购目录"
    EnableEventValidation="false" %>

<%@ Register Src="../System/DbPageFlip1.ascx" TagName="DbPageFlip1" TagPrefix="uc2" %>
<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script language="vbscript" src="../Common/yz.vbs" type="text/vbscript"></script>

    <script language="javascript" type="text/javascript">
     function confirmvalue_PS(obj)
     {

           document.all("txtAccountId_PS"+obj.hosplistid).value =obj.companyid;
          
           document.all("txtCompanyName_PS"+obj.hosplistid).value=obj.companyName;
              project=<%=HPLProject%>;
           if((project==8)||(project==10))
           {
           document.all.Mytable.rows(obj.rownum).cells(15).innerText =obj.companyName;
           }
            if((project==13))
           {
           document.all.Mytable.rows(obj.rownum).cells(14).innerText =obj.companyName;
           }
           
     }
        function Sel_PS(SupplyGoodsId)
     {
        
          var project;
          var tdObject = event.srcElement;
          var rowNum;
          rowNum=tdObject.parentElement.rowIndex;
          project=<%=HPLProject%>;
        
          window.open('Hospital_HosPur_CompanySerch_PSnext.aspx?rownum='+ rowNum +'&Projectid='+ project +'&hspid='+SupplyGoodsId);
          
     }
        function Sel_PS1(SupplyGoodsId,AccountId_PS1)
     {
       alert("sdfs");
          var project;
          var tdObject = event.srcElement;
          var rowNum;
          rowNum=tdObject.parentElement.rowIndex;
          project=<%=HPLProject%>;
        
          window.open('Hospital_HosPur_CompanySerch_PSnext.aspx?rownum='+ rowNum +'&Projectid='+ project +'&AccountId_PS='+AccountId_PS1+'&SupplyGoodsId='+SupplyGoodsId);
          
     }
    </script>

    <table width="98%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td style="width: 4px">
                <img src="../images/intro_left.gif" width="4" height="34" />
            </td>
            <td class="intro_wordbg">
                维护采购目录
            </td>
            <td background="../images/intro_bg.gif">
                <img src="../images/intro_right.jpg" width="118" height="34" />
            </td>
        </tr>
    </table>
    <table style="width: 767px" id="tabData" border="1">
        <tr>
            <td align="right">
                通用名：
            </td>
            <td style="width: 229px">
                <asp:TextBox ID="txtProudctName" InvertedComma="通用名" runat="server" Width="169px"></asp:TextBox>
            </td>
            <td align="right" style="width: 151px">
                规格：
            </td>
            <td style="width: 234px">
                <asp:TextBox ID="txtOutLookc" InvertedComma="规格" runat="server" Width="157px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 136px">
                药品流水号：
            </td>
            <td style="width: 229px; height: 19px">
                <asp:TextBox ID="txtGoodsId" runat="server" Width="169px" NumericOnly="药品流水号"></asp:TextBox>
            </td>
            <td align="right" style="width: 151px">
                商品名：
            </td>
            <td style="height: 19px; width: 234px;">
                <asp:TextBox ID="txtGoodsName" InvertedComma="商品名" runat="server" Width="159px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 136px">
                生产企业注册号：
            </td>
            <td style="width: 229px">
                <asp:TextBox ID="txtUserCode_SC" InvertedComma="生产企业注册号" runat="server" Width="169px"></asp:TextBox>
            </td>
            <td align="right" style="width: 151px">
                生产企业名称：
            </td>
            <td style="width: 234px">
                <asp:TextBox ID="txtCompanyName_SC" InvertedComma="生产企业名称" runat="server" Width="161px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 136px">
                配送企业注册号：
            </td>
            <td style="width: 229px">
                <asp:TextBox ID="txtUserCode_PS" runat="server" InvertedComma="配送企业注册号" Width="169px"></asp:TextBox>
            </td>
            <td align="right">
                配送企业名称：
            </td>
            <td style="width: 234px">
                <asp:TextBox ID="txtCompanyName_PS" runat="server" Width="161px" InvertedComma="配送企业名称"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 136px">
                医院采购状态：
            </td>
            <td style="width: 229px">
                <asp:DropDownList ID="DLStatus" runat="server" Width="168px">
                    <asp:ListItem Selected="True" Value="全部">全部</asp:ListItem>
                    <asp:ListItem Value="撤废目录">撤废目录</asp:ListItem>
                    <asp:ListItem Value="正常采购">正常采购</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td align="right">
                &nbsp;
            </td>
            <td style="width: 234px">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:CheckBox ID="CHbdel" runat="server" Font-Bold="True" Font-Italic="False" Font-Size="Larger"
                    Text="总配送目录表中已撤废的在医院目录表中还没撤废的品种" Width="382px" Visible="False" />&nbsp;
            </td>
            <td>
                <asp:CheckBox ID="Chkps" runat="server" Font-Bold="True" Font-Italic="False" Font-Size="Larger"
                    Text="未确定配送企业的品种" Width="162px" />
            </td>
        </tr>
        <tr>
            <td align="left" colspan="3">
                <asp:CheckBox ID="ChkNum" runat="server" Font-Bold="True" Font-Italic="False" Font-Size="Larger"
                    Text="未填写预采购量的品种" Width="378px" />
            </td>
            <td>
                <asp:Button ID="ButSelect" runat="server" Text="查 询" CssClass="button_bg" Width="60px"
                    OnClientClick="javascript:return CheckForm();" />
            </td>
        </tr>
        <tr>
            <td colspan="4" style="height: 24px">
                &nbsp;<asp:Label ID="Label2" runat="server" Font-Size="Larger" ForeColor="Red" Text="选择配送企业后点击“保存填写的数据”保存数据"
                    Width="335px" Font-Bold="True"></asp:Label>
                <asp:Button ID="Button1" runat="server" CssClass="button_bg8" Text="打印医院采购目录" OnClick="Button1_Click"
                    Width="120px" />
            </td>
        </tr>
        <tr>
            <td colspan="4" style="height: 24px">
                <%--  <uc2:DbPageFlip1 ID="DbPageFlip2" runat="server" />--%>
                <br />
                <asp:Label ID="Label1" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 136px; height: 24px;">
                <input id="Submit2" type="submit" value="恢复已撤废品种" name="Return" class="button_bg8"
                    style="width: 120px" />
            </td>
            <td style="width: 229px; height: 24px;">
                <input id="Submit1" type="submit" value="撤废品种" name="del" class="button_bg4" style="width: 70px" />
            </td>
            <td style="width: 151px; height: 24px;">
                <input id="Submit5" type="submit" value="保存填写的数据" name="BtnConfirm1" class="button_bg6"
                    style="width: 90px" />
            </td>
            <td style="height: 24px; width: 234px;">
            </td>
        </tr>
        <tr>
            <td colspan="4" style="height: 24px">
                <uc1:DbPageFlip ID="DbPageFlip1" runat="server" />
            </td>
        </tr>
    </table>
    <asp:GridView ID="GridView1" runat="server">
    </asp:GridView>
    <br />
</asp:Content>
